import 'package:provider/provider.dart';
import 'package:provider/single_child_widget.dart';
import 'package:ytbusiness/repository/public_request.dart';
import 'package:ytbusiness/repository/scout_request.dart';
import 'package:ytbusiness/state/pay_type.dart';
import 'package:ytbusiness/state/user_role.dart';

List<SingleChildStatelessWidget> providers =[

  ///勘察员请求列表
  Provider<ScoutRequest>(
    create: (_) => ScoutRequest(),
  ),

  ///公共请求列表
  Provider<PublicRequest>(
    create: (_) => PublicRequest(),
  ),

  ///切换角色
  ChangeNotifierProvider(create: (context)=>UserRole()),

  ///切换支付方式
  ChangeNotifierProvider(create: (context)=>PayType()),
];